#ifndef _LCD_DRAW_H_
#define _LCD_DRAW_H_


#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <sys/ioctl.h>


#define RED_COLOR    0xF800
#define GREEN_COLOR  0x07E0
#define BLUE_COLOR   0x001F


void lcd_init();
void lcd_drawBlack();
void lcd_drawBlue();
void PutPixel(unsigned int x,unsigned int y,unsigned int c);
void lcd_drawPic_up(int length, int width, int initial_x, int initial_y, unsigned char *A);
void lcd_drawPic_down(int length, int width, int initial_x, int initial_y, unsigned char *A);
void lcd_drawPic_left(int length, int width, int initial_x, int initial_y, unsigned char *A);
void lcd_drawPic_right(int length, int width, int initial_x, int initial_y, unsigned char *A);
void lcd_drawRegionBlack(int initialX, int initialY, int lastX, int lastY);
void lcd_drawRegionRed(int initialX, int initialY, int lastX, int lastY);
void lcd_close();

#endif